﻿
using System;
using System.Data;
using System.Data.SqlClient;
namespace Model
{
	
	/// <summary>	 
	/// 角色权限表
	/// </summary>
	public class DbRole
	{ 
		#region DbRole
		/// <summary>
		/// 
		/// </summary>
		public DbRole()
		{
		}
		/// <summary>	 
		/// 
		/// </summary>
		public DbRole(Int32 rId)
		{
			this.rId = rId;
		
		}
		/// <summary>	 
		/// 
		/// </summary>		
		public DbRole(DataRow dr)
		{
			int.TryParse(Convert.ToString(dr["rId"]),out rId);
			this.rRoleName = Convert.ToString(dr["rRoleName"]);
			this.rRoleCode = Convert.ToString(dr["rRoleCode"]);
			this.rNote = Convert.ToString(dr["rNote"]);
			
		}
		#endregion
		
		
		#region RId
		private Int32 rId;
		/// <summary>	 
		/// 
		/// AutoInc
		/// PK
		/// </summary>
		public Int32 RId
		{
			get{ return rId; }
			set{ rId= value; }
		}
		#endregion
		
		#region RRoleName
		private System.String rRoleName;
		/// <summary>	 
		/// 权限名称
		/// </summary>
		public System.String RRoleName
		{
			get{ return rRoleName; }
			set{ rRoleName= value; }
		}
		#endregion
		
		#region RRoleCode
		private System.String rRoleCode;
		/// <summary>	 
		/// 权限编号
		/// </summary>
		public System.String RRoleCode
		{
			get{ return rRoleCode; }
			set{ rRoleCode= value; }
		}
		#endregion
		
		#region RNote
		private System.String rNote;
		/// <summary>	 
		/// 备注说明
		/// </summary>
		public System.String RNote
		{
			get{ return rNote; }
			set{ rNote= value; }
		}
		#endregion

	}
}
